package org.hydrakyoufeng.stuplatform.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * Swagger配置
 */
@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI springShopOpenAPI() {
        Info info = new Info()
                .contact(new Contact().email("18264523@qq.com").name("奉先").url("https://www.myinfomation.com"))
                .version("v1.0.0")
                .title("学习平台API文档")
                .description("学习平台API文档");
        return new OpenAPI().info(info);
    }
}
